import { createDiscreteApi } from 'naive-ui'

const { message, dialog, loadingBar, modal } = createDiscreteApi([
  'message',
  'dialog',
  'loadingBar',
  'modal',
])

const msgUtil = {
  $message: message,
  $dialog: dialog,
  $loadingBar: loadingBar,
  $modal: modal,
}

export default msgUtil
